import type { PageModuleTypes } from '../types/index';

/** 供需分包 */
const modules: PageModuleTypes[] = [
  {
    path: 'supplyDemandSquare',
    name: 'supplyDemandSquare',
    navigationStyle: 'custom',
    navigationBarTitleText: '供需广场',
    enablePullDownRefresh: false,
  },
  {
    path: 'supplyDemandDetails',
    name: 'supplyDemandDetails',
    navigationStyle: 'custom',
    navigationBarTitleText: '供需详情',
    enablePullDownRefresh: true,
    backgroundColor: '#fff',
    backgroundColorTop: '#fff',
    children: [
      {
        path: 'applyDirectCooperation',
        name: 'applyDirectCooperation',
        navigationBarTitleText: '申请直接合作',
        navigationStyle: 'custom',
      },
      {
        path: 'requestAdminMatch',
        name: 'requestAdminMatch',
        navigationBarTitleText: '申请秘书处撮合',
        navigationStyle: 'custom'
      },
      {
        path: 'applyCooperationResult',
        name: 'applyCooperationResult',
        navigationBarTitleText: '申请合作结果页',
        navigationStyle: 'custom'
      }
    ]
  },
  {
    path: 'answeringQuestionsList',
    name: 'answeringQuestionsList',
    navigationBarTitleText: '精选答疑'
  },
  {
    path: 'intentionManage',
    name: 'intentionManage',
    navigationBarTitleText: '意向管理',
    navigationStyle: 'custom',
  },
  {
    path: 'intentionStatisticsDetail',
    name: 'intentionStatisticsDetail',
    navigationBarTitleText: '意向统计详情',
    navigationStyle: 'custom'
  },
  {
    path: 'intentionCooperation',
    name: 'intentionCooperation',
    navigationBarTitleText: '合作意向',
  },
  {
    navigationBarTitleText: '意向详情',
    path: 'intentionDetails',
    name: 'intentionDetails',
    navigationStyle: 'custom',
    enablePullDownRefresh: true
  },
  {
    navigationBarTitleText: '申请撮合记录',
    path: 'applicationMatchingRecord',
    name: 'applicationMatchingRecord',
    navigationStyle: 'custom',
    children: [
      {
        path: 'applicationMatchingRecordDetails',
        name: 'applicationMatchingRecordDetails',
        navigationBarTitleText: '申请撮合记录详情'
      }
    ]
  },
  {
    path: 'questionManage',
    name: 'questionManage',
    navigationBarTitleText: '答疑管理',
    children: [
      {
        path: 'questionDetails',
        name: 'questionDetails',
        navigationBarTitleText: '答疑详情'
      },
      {
        path: 'singleQuestionManage',
        name: 'singleQuestionManage',
        navigationBarTitleText: '答疑管理'
      }
    ]
  },
  {
    path: 'extensionCenter',
    name: 'extensionCenter',
    navigationBarTitleText: '推广中心',
    children: [
      {
        path: 'extensionDtail',
        name: 'extensionDtail',
        navigationBarTitleText: '推广详情'
      },
      {
        path: 'detailedBrowseRecord',
        name: 'detailedBrowseRecord',
        navigationBarTitleText: '详细浏览记录'
      },
    ]
  },
  {
    path: 'myBrowseRecords',
    name: 'myBrowseRecords',
    navigationBarTitleText: '我的浏览记录'
  },
  {
    path: 'myBusinessOpportunities',
    name: 'myBusinessOpportunities',
    navigationBarTitleText: '我的供需',
    children: [
      {
        path: 'behaviorCollectList',
        name: 'behaviorCollectList',
        navigationBarTitleText: '收藏列表'
      },

    ]
  },
  // {
  //   path: 'businessOpportunitieDetail',
  //   name: 'businessOpportunitieDetail',
  //   navigationBarTitleText: '管理员供需详情'
  // },
  {
    path: 'releaseBusinessOpportunities',
    name: 'releaseBusinessOpportunities',
    navigationBarTitleText: '发布供需',
    children: [
      {
        path: 'businessOpportunitiesFormCreate',
        name: 'businessOpportunitiesFormCreate',
        navigationBarTitleText: '意向供需收集'
      }
    ]
  },
  {
    path: 'releaseBoResult',
    name: 'releaseBoResult',
    navigationBarTitleText: '发布供需结果页',
    navigationStyle: 'custom'
  },
  {
    path: 'editBusinessOpportunitiesDetail',
    name: 'editBusinessOpportunitiesDetail',
    navigationBarTitleText: ''
  },
  {
    path: 'businessOpportunitiesManage',
    name: 'businessOpportunitiesManage',
    navigationBarTitleText: '供需管理',
    children: [
      {
        path: 'crossClubRecords',
        name: 'crossClubRecords',
        navigationBarTitleText: '跨会记录'
      },
      {
        path: 'businessOpportunitieAuditManage',
        name: 'businessOpportunitieAuditManage',
        navigationBarTitleText: '供需审核管理'
      },
      {
        path: 'followUpRecords',
        name: 'followUpRecords',
        navigationBarTitleText: '跟进记录'
      },
      {
        path: 'addFollowUpRecords',
        name: 'addFollowUpRecords',
        navigationBarTitleText: '添加跟进记录'
      },
      {
        path: 'businessOpportunitieAuditDetail',
        name: 'businessOpportunitieAuditDetail',
        navigationBarTitleText: '供需详情'
      },
      {
        path: 'businessOpportunitiesData',
        name: 'businessOpportunitiesData',
        navigationBarTitleText: '供需数据'
      },
      {
        path: 'businessOpportunitiesDataBrowse',
        name: 'businessOpportunitiesDataBrowse',
        navigationBarTitleText: '详细浏览数据'
      },
      {
        path: 'cooperativeAudit',
        name: 'cooperativeAudit',
        navigationBarTitleText: '合作撮合'
      },
      {
        path: 'cooperativeAuditDetail',
        name: 'cooperativeAuditDetail',
        navigationBarTitleText: '撮合申请详情'
      }
    ]
  },

  {
    path: 'boPromotionalPage',
    name: 'boPromotionalPage',
    navigationBarTitleText: ''
  }
];

export default modules;
